<!-- src/main/resources/templates/reply/edit.html -->
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>编辑文章</title>
    <link rel="stylesheet" type="text/css" th:href="@{/css/editstyles.css}">
</head>
<body>
<h2>编辑评论</h2>

<form th:object="${reply}" th:action="@{'/reply/edit/' + ${reply.id}}" method="post">
    <label>评论编号:</label>
    <input type="text" th:field="*{id}" readonly="readonly" />

    <label>评论内容:</label>
    <textarea th:field="*{content}"></textarea>

    <label>评论时间:</label>
    <input type="text" th:field="*{time}" readonly="readonly" />

    <label>评论文章编号:</label>
    <input type="text" th:field="*{article_id}" />

    <button type="submit">保存</button>
    <a class="cancel-btn" th:href="@{/reply/findAll}">取消</a>
</form>
</body>
</html>
